package com.learncloud.entity.vo;

import com.learncloud.entity.SysUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 用户详情
 * <p/>
 *
 * @author : yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUserDetailVo extends SysUser {

    public SysUserDetailVo(SysUser sysUser){
        this.setUsername(sysUser.getUsername()).setPassword(sysUser.getPassword()).setId(sysUser.getId()).setStatus(sysUser.getStatus());
    }

    @ApiModelProperty("角色id列表")
    List<Integer> checkRoleIds;
}
